package com.ytjj.qmyx.admin.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UpdateProductSpecRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UpdateProductSpecRecordExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdIsNull() {
            addCriterion("order_info_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdIsNotNull() {
            addCriterion("order_info_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdEqualTo(Integer value) {
            addCriterion("order_info_id =", value, "orderInfoId");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdNotEqualTo(Integer value) {
            addCriterion("order_info_id <>", value, "orderInfoId");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdGreaterThan(Integer value) {
            addCriterion("order_info_id >", value, "orderInfoId");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_info_id >=", value, "orderInfoId");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdLessThan(Integer value) {
            addCriterion("order_info_id <", value, "orderInfoId");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdLessThanOrEqualTo(Integer value) {
            addCriterion("order_info_id <=", value, "orderInfoId");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdIn(List<Integer> values) {
            addCriterion("order_info_id in", values, "orderInfoId");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdNotIn(List<Integer> values) {
            addCriterion("order_info_id not in", values, "orderInfoId");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdBetween(Integer value1, Integer value2) {
            addCriterion("order_info_id between", value1, value2, "orderInfoId");
            return (Criteria) this;
        }

        public Criteria andOrderInfoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("order_info_id not between", value1, value2, "orderInfoId");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdIsNull() {
            addCriterion("reissue_logistics_id is null");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdIsNotNull() {
            addCriterion("reissue_logistics_id is not null");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdEqualTo(Integer value) {
            addCriterion("reissue_logistics_id =", value, "reissueLogisticsId");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdNotEqualTo(Integer value) {
            addCriterion("reissue_logistics_id <>", value, "reissueLogisticsId");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdGreaterThan(Integer value) {
            addCriterion("reissue_logistics_id >", value, "reissueLogisticsId");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("reissue_logistics_id >=", value, "reissueLogisticsId");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdLessThan(Integer value) {
            addCriterion("reissue_logistics_id <", value, "reissueLogisticsId");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdLessThanOrEqualTo(Integer value) {
            addCriterion("reissue_logistics_id <=", value, "reissueLogisticsId");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdIn(List<Integer> values) {
            addCriterion("reissue_logistics_id in", values, "reissueLogisticsId");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdNotIn(List<Integer> values) {
            addCriterion("reissue_logistics_id not in", values, "reissueLogisticsId");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdBetween(Integer value1, Integer value2) {
            addCriterion("reissue_logistics_id between", value1, value2, "reissueLogisticsId");
            return (Criteria) this;
        }

        public Criteria andReissueLogisticsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("reissue_logistics_id not between", value1, value2, "reissueLogisticsId");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeIsNull() {
            addCriterion("update_type is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeIsNotNull() {
            addCriterion("update_type is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeEqualTo(Integer value) {
            addCriterion("update_type =", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeNotEqualTo(Integer value) {
            addCriterion("update_type <>", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeGreaterThan(Integer value) {
            addCriterion("update_type >", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("update_type >=", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeLessThan(Integer value) {
            addCriterion("update_type <", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeLessThanOrEqualTo(Integer value) {
            addCriterion("update_type <=", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeIn(List<Integer> values) {
            addCriterion("update_type in", values, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeNotIn(List<Integer> values) {
            addCriterion("update_type not in", values, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeBetween(Integer value1, Integer value2) {
            addCriterion("update_type between", value1, value2, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("update_type not between", value1, value2, "updateType");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecIsNull() {
            addCriterion("before_product_sku_spec is null");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecIsNotNull() {
            addCriterion("before_product_sku_spec is not null");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecEqualTo(String value) {
            addCriterion("before_product_sku_spec =", value, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecNotEqualTo(String value) {
            addCriterion("before_product_sku_spec <>", value, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecGreaterThan(String value) {
            addCriterion("before_product_sku_spec >", value, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecGreaterThanOrEqualTo(String value) {
            addCriterion("before_product_sku_spec >=", value, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecLessThan(String value) {
            addCriterion("before_product_sku_spec <", value, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecLessThanOrEqualTo(String value) {
            addCriterion("before_product_sku_spec <=", value, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecLike(String value) {
            addCriterion("before_product_sku_spec like", value, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecNotLike(String value) {
            addCriterion("before_product_sku_spec not like", value, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecIn(List<String> values) {
            addCriterion("before_product_sku_spec in", values, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecNotIn(List<String> values) {
            addCriterion("before_product_sku_spec not in", values, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecBetween(String value1, String value2) {
            addCriterion("before_product_sku_spec between", value1, value2, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andBeforeProductSkuSpecNotBetween(String value1, String value2) {
            addCriterion("before_product_sku_spec not between", value1, value2, "beforeProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecIsNull() {
            addCriterion("after_product_sku_spec is null");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecIsNotNull() {
            addCriterion("after_product_sku_spec is not null");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecEqualTo(String value) {
            addCriterion("after_product_sku_spec =", value, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecNotEqualTo(String value) {
            addCriterion("after_product_sku_spec <>", value, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecGreaterThan(String value) {
            addCriterion("after_product_sku_spec >", value, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecGreaterThanOrEqualTo(String value) {
            addCriterion("after_product_sku_spec >=", value, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecLessThan(String value) {
            addCriterion("after_product_sku_spec <", value, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecLessThanOrEqualTo(String value) {
            addCriterion("after_product_sku_spec <=", value, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecLike(String value) {
            addCriterion("after_product_sku_spec like", value, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecNotLike(String value) {
            addCriterion("after_product_sku_spec not like", value, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecIn(List<String> values) {
            addCriterion("after_product_sku_spec in", values, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecNotIn(List<String> values) {
            addCriterion("after_product_sku_spec not in", values, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecBetween(String value1, String value2) {
            addCriterion("after_product_sku_spec between", value1, value2, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAfterProductSkuSpecNotBetween(String value1, String value2) {
            addCriterion("after_product_sku_spec not between", value1, value2, "afterProductSkuSpec");
            return (Criteria) this;
        }

        public Criteria andAdminIdIsNull() {
            addCriterion("admin_id is null");
            return (Criteria) this;
        }

        public Criteria andAdminIdIsNotNull() {
            addCriterion("admin_id is not null");
            return (Criteria) this;
        }

        public Criteria andAdminIdEqualTo(Integer value) {
            addCriterion("admin_id =", value, "adminId");
            return (Criteria) this;
        }

        public Criteria andAdminIdNotEqualTo(Integer value) {
            addCriterion("admin_id <>", value, "adminId");
            return (Criteria) this;
        }

        public Criteria andAdminIdGreaterThan(Integer value) {
            addCriterion("admin_id >", value, "adminId");
            return (Criteria) this;
        }

        public Criteria andAdminIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("admin_id >=", value, "adminId");
            return (Criteria) this;
        }

        public Criteria andAdminIdLessThan(Integer value) {
            addCriterion("admin_id <", value, "adminId");
            return (Criteria) this;
        }

        public Criteria andAdminIdLessThanOrEqualTo(Integer value) {
            addCriterion("admin_id <=", value, "adminId");
            return (Criteria) this;
        }

        public Criteria andAdminIdIn(List<Integer> values) {
            addCriterion("admin_id in", values, "adminId");
            return (Criteria) this;
        }

        public Criteria andAdminIdNotIn(List<Integer> values) {
            addCriterion("admin_id not in", values, "adminId");
            return (Criteria) this;
        }

        public Criteria andAdminIdBetween(Integer value1, Integer value2) {
            addCriterion("admin_id between", value1, value2, "adminId");
            return (Criteria) this;
        }

        public Criteria andAdminIdNotBetween(Integer value1, Integer value2) {
            addCriterion("admin_id not between", value1, value2, "adminId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}